package com.latsen.fengke;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexControler {
    @ResponseBody
    @RequestMapping("/wellcome")
    public String  helloLatsen()
    {
        return "\n" +
                "@RequestMapping(value = \"/findEmailInfoDataCriteria\", method = RequestMethod.GET)\n" +
                "\tpublic String findEmailInfoDataCriteria(@RequestParam(value = \"page\", defaultValue = \"0\") Integer page,\n" +
                "\t\t\t@RequestParam(value = \"size\", defaultValue = \"10\") Integer size,\n" +
                "\t\t\t@ModelAttribute(\"emailInfoData\") EmailInfo emailInfo, ModelMap modelMap) {\n" +
                "\t\tPage<EmailInfo> list = emailService.findEmailDataCriteria(page, size, emailInfo);\n" +
                "\t\tmodelMap.addAttribute(\"datas\", list);\n" +
                "\t\treturn \"/emailInfoManager/emailInfoList\";\n" +
                "\t}\n" +
                "--------------------- \n" +
                "作者：牛奋lch \n" +
                "来源：CSDN \n" +
                "原文：https://blog.csdn.net/liuchuanhong1/article/details/75352442 \n" +
                "版权声明：本文为博主原创文章，转载请附上博文链接！";
    }
    @RequestMapping("/index")
    public String index()
    {
        return "index";
    }
}
